package com.yexiao.cofe.business.pojo;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("user")
public class User {

    /**
     * 自增主键
     */
    @TableId(type = IdType.AUTO)
    public int id;

    /**
     * 用户id
     */
    @TableField("user_id")
    public String userId;

    /**
     * 用户id
     */
    @TableField("phone")
    public String phone;

    /**
     * 用户id
     */
    @TableField("user_name")
    public String userName;

    /**
     * 用户id
     */
    @TableField("avatar")
    public String avatar;

    /**
     * 用户id
     */
    @TableField("is_del")
    @TableLogic
    public int isDel;

    /**
     * 用户id
     */
    @TableField("status")
    public int status;

    /**
     * 用户id
     */
    @TableField("create_time")
    public String createTime;

    /**
     * 用户id
     */
    @TableField("update_time")
    public String updateTime;

    public static final String ID = "id";

    public static final String USER_ID = "user_id";

    public static final String PHONE = "phone";

    public static final String USER_NAME = "user_name";

    public static final String AVATAR = "avatar";

    public static final String IS_DEL = "is_del";

    public static final String STATUS = "status";

    public static final String CREATE_TIME = "create_time";

    public static final String UPDATE_TIME = "update_time";
}
